package com.gitee.linmt.init;

import com.gitee.linmt.cache.DictionaryEnumCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;

/**
 * @author lin-mt
 * @version 1.0.0
 * @since 1.0.0
 */
public class InitDictionaryEnums implements CommandLineRunner {

    @Autowired
    private DictionaryEnumCache dictionaryEnumCache;

    @Override
    public void run(String... args) {
        dictionaryEnumCache.tryCacheAll();
    }
}
